# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=malwareanalyser
pkgver=3.3
pkgrel=5
groups=('blackarch' 'blackarch-windows' 'blackarch-malware'
        'blackarch-defensive' 'blackarch-reversing')
pkgdesc='A freeware tool to perform static and dynamic analysis on malware.'
arch=('any')
url='http://malwareanalyser.blogspot.de/2011/10/malware-analyser-33.html'
license=('custom:unknown')
# somebody made a typo
conflicts=('malwareanaylser')
provides=('malwareanaylser')
replaces=('malwareanaylser')
source=("https://dl.packetstormsecurity.net/forensics/malware_analyser-$pkgver.zip")
sha512sums=('dc9ebe3441e317c45dd0f9ba8323e4eb70813eedbbd131fb947b72cf75292dadc036bcc36e686d6ad8b6f10334d362c399e6b6f343f89293d320acbc05378c19')

package() {
  cd "malware_analyser $pkgver"

  install -dm 755 "$pkgdir/usr/share/windows/$pkgname"

  rm "../malware_analyser-$pkgver.zip"

  cp -a * "$pkgdir/usr/share/windows/$pkgname"
}

